<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <ul class="nav nav-tabs" data-field="status">
            <li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
            {foreach name="statusList" item="vo"}
            <li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
            {/foreach}
        </ul>
    </div>


    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('work/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <!--<a href="javascript:;" class="btn btn-info btn-import  {:$auth->check('test/import')?'':'hide'}" title="{:__('Import')}" ><i class="fa fa-upload"></i> {:__('Import')}</a>-->

                       <a href="javascript:;" class="btn btn-info btn-export {:$auth->check('work/export')?'':'hide'}" title="{:__('导出')}"><i class="fa fa-download"></i> {:__('导出')}</a>
                        <a href="javascript:;" class="btn btn-success btn-dialog {:$auth->check('work/import')?'':'hide'}" data-area='["80%","80%"]' data-url="{:url('work/import')}" title="{:__('工单导入')}" ><i class="fa fa-shield"></i> {:__('导入')}</a>
                        <a href="javascript:;" class="btn btn-success btn-type1 btn-disabled disabled {:$auth->check('work/userbao')?'':'hide'}" title="改为在保" ><i class="fa fa-pencil"></i> 改为在保</a>
                        <!--<button type="button" class="btn btn-success btn-dr-click">导入</button>-->
                       <!-- <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('work/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('work/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                        <a href="javascript:;" class="btn btn-success btn-dialog {:$auth->check('work/delindex')?'':'hide'}" data-area='["80%","80%"]' data-url="{:url('work/delindex')}" title="{:__('已删除订单')}" ><i class="fa fa-shield"></i> {:__('已删除订单')}</a>


                        <div class="dropdown btn-group {:$auth->check('work/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                {foreach name="statusList" item="vo"}
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key}">{:__('Set status to ' . $key)}</a></li>
                                {/foreach}
                            </ul>
                        </div>


                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('work/edit')}"
                           data-operate-del="{:$auth->check('work/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script type="text/javascript">

    var web_type_list=[];
    $.ajax({
        url:'chammel/index',
        type:'post',
        data:{tableselect:1},
        async: false,
        success:function(res){
            web_type_list=res;
        }
    })

</script>
